package com.service.impl;

import com.vo.AuthorityVO;
import com.mapper.AuthorityMapper;
import com.service.AuthorityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author aiou
 * @since 2025-06-12
 */
@Service
public class AuthorityServiceImpl implements AuthorityService {

    @Autowired
    private AuthorityMapper authorityMapper;

    //查询所有权限(子权限和对应的父权限)
    @Override
    public List<AuthorityVO> authorityVOList() {
        return authorityMapper.list();
    }
}
